# conding = utf-8

from selenium.webdriver.common.by import By

left_menu_sys = By.XPATH, "//li//span[text()='财务管理']"
left_menu = By.XPATH, '//*[@id="app"]/section/aside/div/ul/li[6]/ul/li[2]/a'

btn_unfold = By.XPATH, "//a[contains(text(), '展开')]"
id_send = By.CSS_SELECTOR, "input[placeholder='请输入单据编号']"

time_began = By.XPATH, "//form/div/div/div/div/div/span/span/span/input[@placeholder='开始时间']"
time_left = By.XPATH, "//a[@title='上一年 (Control键加左方向键)']"
time_began_open = By.XPATH, '/html/body/div[15]/div/div/div/div/div[1]/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[4]'
time_finishes_open = By.XPATH, '/html/body/div[15]/div/div/div/div/div[1]/div[2]/div[2]/div[2]/table/tbody/tr[5]/td[5]'
find_expected = By.XPATH, '//td[text()="ZC00000000644"]'
unit = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[3]/div/div[2]/div/span/div'
unit_open = By.XPATH, "//li[contains(text(), '供应商1[供应商]')]"
operator = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[4]/div/div[2]/div/span/div'
operator_open = By.XPATH, "//li[contains(text(), '测试用户')]"
finance = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[5]/div/div[2]/div/span/div'
finance_open = By.XPATH, "//li[contains(text(), '小曹')]"
account = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[6]/div/div[2]/div/span/div'
account_open = By.XPATH, "//li[contains(text(), '账户1')]"
state = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[7]/div/div[2]/div/span/div'
state_open = By.XPATH,  "//li[contains(text(), '未审核')]"
remark = By.CSS_SELECTOR, "input[placeholder='请输入单据备注']"

find_btn = By.XPATH, "//button[span[text()='查 询']]"
find_reset = By.XPATH, "//button[span[text()='重 置']]"
add_btn = By.XPATH, "//button[span[text()='新增']]"
add_operator = By.XPATH,  '//*[@id="organId"]'
add_operator_open = By.XPATH, "//li[contains(text(), '客户1[客户]')]"

add_finance = By.XPATH, '//*[@id="handsPersonId"]'
add_finance_open = By.XPATH, "//li[contains(text(), '小夏')]"

project = By.XPATH, '/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div[1]/div[2]/div[2]/div/div[2]/div/div[2]/span/div/div/div'
project_open = By.XPATH, "//li[contains(text(), '快递费')]"
amount = By.XPATH, "//label/input[@placeholder='请选择金额']"
add_remark = By.XPATH, "//label/input[@placeholder='请选择备注']"
insert = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div[1]/div[1]/div[2]/div'
label = By.XPATH, '/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div[1]/div[2]/div[2]/div/div[2]/div[2]/div[1]/label/span'
remove = By.XPATH, "//button[span[text()='移除行']]"
remove_identify = By.XPATH, '//button[@class="ant-btn ant-btn-primary ant-btn-sm"]'
stored = By.XPATH, "//button[span[text()='保 存']]"

get_tishi = By.XPATH,"//div[@class='ant-tooltip ant-tooltip-placement-top' and contains(@style,'display: none')]"

get_update = By.XPATH, "//div[@class='ant-tooltip ant-tooltip-placement-top' and contains(@style,'display: none')]/div/div[2]"

cancel = By.XPATH, "//button[span[text()='取 消']]"
view = By.XPATH, "//tr[1]/td/span/a[text()='查看']"
view_btn = By.XPATH, '/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[5]/div/div/div[2]/div/div[2]/div[3]/button[2]'


update = By.XPATH, "//tr[1]/td/span/a[text()='编辑']"
handler_btn = By.XPATH,'//*[@id="handsPersonId"]'
handler_add = By.XPATH, '/html/body/div[12]/div/div/div/div[3]'
handler_name = By.XPATH,"//input[@placeholder='请输入姓名']"
handler_type = By.XPATH, '//*[@id="type"]'
handler_sort = By.XPATH, "//input[@placeholder='请输入排序']"
handler_yes = By.XPATH, "//div/button[span='确 定']"
handler_no = By.XPATH, "//div/button[span='关 闭']"
handle_expected = By.XPATH, "//div[@class='ant-form-explain']"

rent = By.XPATH, "//li[contains(text(), '快递费')]"

delete = By.XPATH,"//tr[1]/td/span/a[text()='删除']"
delete_btn = By.XPATH, "//div[@class='ant-popover-buttons']/button[span='确 定']"

delete_expected = By.XPATH, "//tr[1]/td[4]"

batch = By.XPATH,'//tr[1]/td/span/label'

batch_btn = By.XPATH, "//div/button[@class='ant-btn ant-dropdown-trigger']"
pl_delete = By.XPATH,"//ul[@data-v-6447f0e8]/li[1]"
pl_audit = By.XPATH,"//ul[@data-v-6447f0e8]/li[2]"
pl_anti_audit = By.XPATH, "//ul[@data-v-6447f0e8]/li[3]"
queding = By.XPATH,"/html/body/div[25]/div/div[2]/div/div[2]/div/div/div[2]/button[2]"


